﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="${basePath}/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="${basePath}/js/jquery.js"></script>

<script type="text/javascript">
	$(function() {
		var role = "${role}";
		if(role=="管理员"){
			var title = $("#supermanage");
			title.hide();
		}
		if(role=="营销部"){
			var title = $("#supermanage");
			var title2 = $("#product");
			var title3 = $("#supermanage2");
			title.hide();
			title2.hide();
			title3.hide();
		}
		if(role=="商品管理员"){
			var title = $("#supermanage");
			var title2 = $("#sell");
			var title3 = $("#supermanage2");
			title.hide();
			title2.hide();
			title3.hide();
		}
		//导航切换
		$(".menuson li").click(function() {
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});

		$('.title').click(function() {
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if ($ul.is(':visible')) {
				$(this).next('ul').slideUp();
			} else {
				$(this).next('ul').slideDown();
			}
		});
	})
</script>


</head>

<body style="background:#f0f9fd;">

	<dl class="leftmenu">

		<dd id="product">
			<div class="title">
				<span><img src="images/leftico01.png" /></span>商品管理
			</div>
			<ul class="menuson">
				<li><cite></cite><a href="${basePath}/banner/list" target="rightFrame">轮播图管理</a><i></i></li>
				<li><cite></cite><a href="${basePath}/theme/list" target="rightFrame">主题商品</a><i></i></li>
				<li><cite></cite><a href="${basePath}/category/list" target="rightFrame">分类管理</a><i></i></li>
				<li><cite></cite><a href="${basePath}/product/list?page=1" target="rightFrame">商品总表</a><i></i></li>
			</ul>
		</dd>
		
		<dd id="sell">
			<div class="title">
				<span><img src="images/leftico01.png" /></span>订单管理
			</div>
			<ul class="menuson">
				<li><cite></cite><a href="${basePath}/order/list?page=1" target="rightFrame">订单管理</a><i></i></li>
			</ul>
		</dd>


		<dd id="supermanage">
			<div class="title">
				<span><img src="images/leftico02.png" /></span>用户管理
			</div>
			<ul class="menuson">
				<li><cite></cite><a href="${basePath}/manage/list?page=1" target="rightFrame">管理员列表</a><i></i></li>
				<li><cite></cite><a href="${basePath}/user/list?page=1" target="rightFrame">用户列表</a><i></i></li>
			</ul>
		</dd>

		<dd id="supermanage2">
			<div class="title">
				<span><img src="images/leftico03.png" /></span>报表
			</div>
			<ul class="menuson">
				<li><cite></cite><a href="category_report.jsp" target="rightFrame">分类销售图</a><i></i></li>
				<li><cite></cite><a href="day_report.jsp" target="rightFrame">营销图</a><i></i></li>
			</ul>
		</dd>

	</dl>

</body>
</html>
